function jp_allCheck(obj, name) {
	var box = $("input[name=" + name + "]");
	for (i = 0; i < box.length; i++) {
		box[i].checked = obj.checked;
	}
}

function jp_oneCheck(obj, name) {
	var box = $("input[name=" + obj.name + "]");
	var cnum = 0;
	for (i = 0; i < box.length; i++) {
		if (box[i].checked == true) {
			cnum++;
		}
	}
	if (cnum == box.length) {
		$("input[name=" + name + "]").attr("checked", true);
	} else {
		$("input[name=" + name + "]").attr("checked", false);
	}
}
